package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxxx.server.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wyd
 * @since 2023-06-11
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    IPage<Employee> getEmpByPage( Page<Employee> page,
                                 @Param("employee")Employee employee,
                                 @Param("beginDateScope")LocalDate[] beginDateScope);

    /**
     * 查询员工导出Excel
     * @param id
     * @return
     */
    List<Employee> getEmployeeExcel(Integer id);
}
